<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增</title>
<link rel="stylesheet" href="${ctx}/css/base.css">
<link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all">
</head>
<body>
	<div class="body_top_marger10 body_center">
		<div class="layui-main layui-form-pane" style="width: 400px">
			<form class="layui-form" action="">
			    <input disabled="disabled" name="id" value="${organizer.id}" hidden/>
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>联系人</label>
					<div class="layui-input-inline">
						<input type="text" id="contacts" name="contacts" 
                            lay-verify="required" placeholder="输入联系人" autocomplete="off"
							class="layui-input" value="${organizer.contacts}">
					</div>
				</div>
				
				
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>库房名称</label>
					<div class="layui-input-inline">
						<input type="text" id="organizeName" name="organizeName" placeholder="请输入库房名称"
							lay-verify="required" autocomplete="off" class="layui-input" value="${organizer.organizeName}">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>联系人电话</label>
					<div class="layui-input-inline">
						<input type="text" id="contactsPhone" name="contactsPhone" placeholder="请输入联系人电话"
							lay-verify="required" autocomplete="off" class="layui-input" value="${organizer.contactsPhone}">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>库房地址</label>
					<div class="layui-input-inline">
						<input type="text" id="organizeAddress" name="organizeAddress" placeholder="请输入库房地址"
							lay-verify="required" autocomplete="off" class="layui-input" value="${organizer.organizeAddress}">
					</div>
				</div>
				
				<div class="layui-form-item" pane style="width:298px">
					<label class="layui-form-label"><font color="red">*</font>库房类型</label>
					<div class="layui-input-block">
						<input type="radio" name="organizeType" value="1" title="段" <c:if test="${organizer == null}">checked</c:if> <c:if test="${organizer != null && organizer.organizeType==1}">checked</c:if> >
						<input type="radio" name="organizeType" value="3" title="库" <c:if test="${organizer != null && organizer.organizeType==3}">checked</c:if>>
					</div>
				</div>
				
				<div class="layui-form-item">
					<div class="body_center">
						<button class="layui-btn" lay-submit lay-filter="formSubmit">保存</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<script src="${ctx}/js/jquery.min.js"></script>
	<script src="${ctx}/layui/layui.js"></script>
	
	<script type="text/javascript">
		var rootPath = '${ctx}';
		var assetTypeAlls = $("#assetTypeAllsInput").val();
		//var assetTypeAlls = "${assetTypeAll}";
	</script>
	<script src="${ctx}/js/jfTable.js"></script>
	<script src="${ctx}/js/storagemanager/storage_detail.js"></script>
</body>
</html>